package com.ququ.syb.business.withdraw.fegin;

import com.ququ.common.result.Result;
import com.ququ.syb.common.pojo.BankAccountInfo;
import com.ququ.syb.common.pojo.PayBankAccountInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "bankcard")
public interface BankCardFegin {

    @RequestMapping(value = "/paybankcard/query")
    Result<PayBankAccountInfo> getPayBankAccountInfo(@RequestParam(value = "bankid") Long bankid);

    @RequestMapping(value = "/paybankcard/query")
    Result<PayBankAccountInfo> getPayBankAccountInfo(@RequestParam(value = "accountid") String accountid,
                                                     @RequestParam(value = "bankcardno") String bankcardno);

    @RequestMapping(value = "/paybankcard/bind")
    Result<PayBankAccountInfo> bindPayBankAccountInfo(@RequestParam(value = "accountid") String accountid,
                                                      @RequestParam(value = "bankcardno") String bankcardno,
                                                      @RequestParam(value = "name") String name,
                                                      @RequestParam(value = "mobile") String mobile,
                                                      @RequestParam(value = "idcardno") String idcardno);

    @RequestMapping(value = "/paybankcard/cvvexp")
    Result<PayBankAccountInfo> savePayBankAccountInfoExpCvv(@RequestParam(value = "accountid") String accountid,
                                                            @RequestParam(value = "bankcardno") String bankcardno,
                                                            @RequestParam(value = "expirydate") String expirydate,
                                                            @RequestParam(value = "cvv2") String cvv2);

    @RequestMapping(value = "/bankcard/query")
    Result<BankAccountInfo> getBankAccountInfo(@RequestParam(value = "accountid") String accountid);


    @RequestMapping(value = "/bankcard/query")
    Result<BankAccountInfo> getBankAccountInfo(@RequestParam(value = "bankid") Long bankid);


}
